import 'package:flutter/material.dart';

import 'my_fornt.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(primaryColor: Colors.yellow),
      home: Scaffold(
        appBar: AppBar(title: const Text('你好Flutter')),
        body: const MyHomePage(),
      ),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return ListView(
      children: [
        ListTile(
          leading: Image.network(
            'https://tse3-mm.cn.bing.net/th/id/OIP-C.FYx55PIoNajL-lEV5UhFlAHaNK?rs=1&pid=ImgDetMain',
          ),
          title: Text('我是标题'),
          subtitle: Text('我是副标题'),
        ),
        Divider(),
        ListTile(
          leading: Image.network(
            'https://tse3-mm.cn.bing.net/th/id/OIP-C.FYx55PIoNajL-lEV5UhFlAHaNK?rs=1&pid=ImgDetMain',
          ),
          title: Text('我是标题'),
          subtitle: Text('我是副标题'),
        ),
        Divider(),
        ListTile(
          leading: Image.network(
            'https://tse3-mm.cn.bing.net/th/id/OIP-C.FYx55PIoNajL-lEV5UhFlAHaNK?rs=1&pid=ImgDetMain',
          ),
          title: Text('我是标题'),
          subtitle: Text('我是副标题'),
        ),
        Divider(),
        ListTile(
          title: Text('我是标题'),
          subtitle: Text('我是副标题'),
          trailing: Image.network(
            'https://tse3-mm.cn.bing.net/th/id/OIP-C.FYx55PIoNajL-lEV5UhFlAHaNK?rs=1&pid=ImgDetMain',
          ),
        ),
        Divider(),
        ListTile(
          leading: Icon(Myfornt.book),
          title: Text('我是标题'),
          subtitle: Text('我是副标题'),
        ),
        Divider(),
        ListTile(
          leading: Icon(Myfornt.weixin),
          title: Text('我是标题'),
          subtitle: Text('我是副标题'),
        ),
        Divider(),
        ListTile(
          title: Text('我是标题'),
          subtitle: Text('我是副标题'),
          trailing: Icon(Myfornt.weixin_2),
        ),
        Divider(),
      ],
    );
  }
}
